from django.conf.urls.defaults import *
from django.views.generic import list_detail
from konto.models import userModel
from kontakty.views import *
from kontakty.models import *
from django.views.generic.simple import direct_to_template
from django.views.generic.list_detail import object_list, object_detail

urlpatterns=patterns('',
	url(r'^$', object_list, {'queryset': userModel.objects.all(), 'template_name': 'kontakty/lista.html',}, name="kontakty"),
	url(r'(?P<object_id>\d+)', object_detail, {'queryset': userModel.objects.all(), 'template_name': 'kontakty/szczegoly.html', 'template_object_name': 'uzytkownik',}),
	)
